function create1(){  //上方头像框
    var $touxiang1=$('<div></div>');
    function zhuxiao(){
        console.log( $.cookie(),1);
        $.cookie('');
        console.log( $.cookie(),2);
        window.location.reload();
    };
    $touxiang1.html(`
    <img src="https://res.vmallres.com/20190430/images/echannel/misc/img_not_logged_in.png" alt="" style="width:40px;height:40px">
    <span style='font-size:12px'>${cookiename}</span>
    <a href='javascript:;' onclick="zhuxiao()">注销</a>
    <script>
        function zhuxiao() {
            console.log($.cookie(), 1);
            $.cookie(cookiename,'', {expires:-1});
            console.log($.cookie(), 2);
            window.location.reload();
        };

    </script>
    `);

    $('.headerright').css('position','relative');
    $touxiang1.css('position','absolute').css('z-index',101).css('minWidth','130px').height('40px').css('display','flex').css('background','#a6a6a6').css('overflow','hidden').css('left','-40px');
    $('.headerright').append($touxiang1);
}
function create2(){   //主页menu头像
    var $touxiang2=$('<div></div>');
    $touxiang2.html(
    `
    亲爱的
    <span style='font-size:12px'>${cookiename}</span>
    `)
    $touxiang2.css('minWidth','142px').height('20px').css('background','#fff').css('position','absolute').css('top',0).css('overflow','hidden');
    $('.login').append($touxiang2)
}
